package com.example.order.service;

import com.example.order.mapper.OrderDetailMapper;
import com.example.order.model.OrderDetail;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class OrderDetailService {
    @Resource
    private OrderDetailMapper orderDetailMapper;

    public int add(int oid , String[] dids){
        return orderDetailMapper.add(oid, dids);
    }

    public List<OrderDetail> getList(int oid){
        return orderDetailMapper.getList(oid);
    }
}
